package com.blog.cmrpersonalblog.dto.comment.responst;

import lombok.Data;

/**
 * 评论图片上传响应DTO
 */
@Data
public class CommentImageUploadResponse {

    /**
     * 上传是否成功
     */
    private Boolean success;

    /**
     * 响应消息
     */
    private String message;

    /**
     * 上传令牌
     */
    private String uploadToken;

    /**
     * 图片信息
     */
    private CommentImageInfo imageInfo;

    /**
     * 临时图片ID（用于后续关联到评论）
     */
    private Long tempImageId;

    public CommentImageUploadResponse() {}

    public CommentImageUploadResponse(Boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public CommentImageUploadResponse(Boolean success, String message, 
                                    String uploadToken, CommentImageInfo imageInfo, Long tempImageId) {
        this.success = success;
        this.message = message;
        this.uploadToken = uploadToken;
        this.imageInfo = imageInfo;
        this.tempImageId = tempImageId;
    }
}
